<?php
$dir = dirname(__FILE__);
$pluginRootURL = get_option('siteurl').substr($dir, strpos($dir, '/wp-content'));
require_once($dir.'/../templates/photoalbum-resources.php');
if (!ereg('media-upload.php', $_SERVER['REQUEST_URI'])): // WP < 2.5
?>
<script type="text/javascript">
addLoadEvent (function () {
    var div = document.getElementById('upload-menu');
    var as = div.getElementsByTagName('a')
    for (var i=0;i<as.length;i++) {
        var pos = as[i].innerHTML.indexOf('(Flickr)');
        if (pos > 0) {
            as[i].innerHTML = '<span style="padding:0 20px 0 0;background:url(../wp-content/plugins/tantan-flickr/flickr/icon.gif) no-repeat right;">' + as[i].innerHTML.substring(0,pos-1) + '</span>';
        }
    }
});
</script>
<?php endif;?>
<script type="text/javascript">

</script>
<script type="text/javascript" src="<?php echo $pluginRootURL;?>/admin-tab.js"></script>
<script type="text/javascript">
<?php echo TanTanFlickrDisplay::js(); ?>
</script>
<link rel='stylesheet' href='<?php echo $pluginRootURL;?>/admin-tab.css' type='text/css' />
